package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;

	public class UnoUpdateCommand extends SuperCommand
	{
		public function UnoUpdateCommand()
		{
			socketEvent = SocketEventID.UNO_UPDATE;
			viewEvent = ViewEventID.UNO_UPDATE;
		}
		
		override public function success(e:UnoEvent):void
		{
			var table:Object = db.tableList[db.userList[e.data.userID]["tableID"]];
			table.userList[e.data.seatID]["uno"] = "1";
		}
	}
}